﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResultLotteryList.ascx.cs"
    Inherits="WebUI.Admin.UserControls.ResultLotteryList" %>
<%@ Register Src="~/Admin/UserControls/PaggingController.ascx" TagPrefix="uc" TagName="PagingController" %>
<%@ Register Src="~/Admin/UserControls/NotificationController.ascx" TagPrefix="uc"
    TagName="NotificationDialog" %>
<%@ Register Src="~/Admin/UserControls/ConfirmDialogController.ascx" TagPrefix="uc"
    TagName="ConfirmDialog" %>
<div class="widgets ui-sortable">
    <div class="widget sortable table" style="opacity: 1;">
        <div>
            &nbsp;DANH SÁCH KẾT QUẢ XỔ SỐ CỦA CÁC TỈNH 
            <asp:Label ID="lblTotal" runat="server" Text="" Font-Bold="True"></asp:Label>
            <br />
            <br />
        </div>
        <div>
            <table class="table" cellspacing="0" rules="all" border="1" style="width: 100%; border-collapse: collapse;">
                <tbody>
                    <tr>
                        <th scope="col">
                            MÃ TỈNH
                        </th>
                        <th scope="col">
                            NGÀY MỞ
                        </th>
                        <th scope="col">
                            GIẢI ĐẶC BIỆT
                        </th>
                        <th scope="col">
                            GIẢI NHẤT
                        </th>
                        <th scope="col">
                            GIẢI NHÌ
                        </th>
                        <th scope="col">
                            GIẢI BA
                        </th>
                        <th scope="col">
                            GIẢI TƯ
                        </th>
                        <th scope="col">
                            GIẢI NĂM
                        </th>
                        <th scope="col">
                            GIẢI SÁU
                        </th>
                        <th scope="col">
                            GIẢI BẢY
                        </th>
                        <th scope="col">
                        </th>
                    </tr>
                    <asp:Repeater ID="RepeaterResultLotteryList" runat="server" OnItemCommand="RepeaterResultLotteryList_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td style="text-align: center">
                                    <%# Eval("PROVINCE_ID")%>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("RESULTDATE") %>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("SPEC") %>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("ONE") %>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("TWO") %>
                                </td>
                                <td style="text-align: center">
                                    <p>
                                        <%# Eval("THREE") %></p>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("FOUR") %>
                                </td>
                                <td style="text-align: center">
                                    <p>
                                        <%# Eval("FIVE") %></p>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("SIX") %>
                                </td>
                                <td style="text-align: center">
                                    <%# Eval("SEVEN") %>
                                </td>
                                <td style="text-align: center">
                                    <a href="../Admin/UpdateResult.aspx?ID=<%# Eval("PROVINCE_ID") %>&OpenDate=<%# Eval("RESULTDATE") %>&SPEC=<%# Eval("SPEC") %>
                               &ONE=<%# Eval("ONE") %>&TWO=<%# Eval("TWO") %>&THREE=<%# Eval("THREE") %>&FOUR=<%# Eval("FOUR") %>
                               &FIVE=<%# Eval("FIVE") %>&SIX=<%# Eval("SIX") %>&SEVEN=<%# Eval("SEVEN") %>&PROVINCE_NAME=<%# Eval("PROVINCE_NAME") %>">Update</a>
                                    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('Are you sure you want to Delete this Record?');"
                                        CommandName='<%# Eval("RESULTDATE") %>' CommandArgument='<%# Eval("PROVINCE_ID") %>'>Delete</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Label ID="lblFooter" runat="server"></asp:Label>
                        </FooterTemplate>
                    </asp:Repeater>
                    <tr>
                        <td colspan="11">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border: 0px;
                    padding-top: 10px; background-color: Transparent;">
                    <tr>
                        <td style="border: 0px;" valign="top" align="right">
                          Nhảy đến  Trang
                            <asp:DropDownList ID="ddPage" runat="server" AutoPostBack="true" 
                                onselectedindexchanged="ddPage_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td align="right" style="border: 0px;">
                            <asp:LinkButton ID="lbtn_first_resultlottery" runat="server" 
                                onclick="lbtn_first_resultlottery_Click">First</asp:LinkButton> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
                            <asp:LinkButton ID="lbtn_pre_resultlottery" runat="server" 
                                onclick="lbtn_pre_resultlottery_Click">previous</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
                            <asp:LinkButton ID="lbtntnext_resultlottery" runat="server" 
                                onclick="lbtntnext_resultlottery_Click">next</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
                            <asp:LinkButton ID="lbtlast_resultlottery" runat="server" 
                                onclick="lbtlast_resultlottery_Click">Last</asp:LinkButton>
                        </td>
                    </tr>
                </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="text-align: right">
            <asp:Button ID="btnAdd" runat="server" Text="Thêm mới dữ liệu" CssClass="button"
                OnClick="btnAdd_Click" />
        </div>
    </div>
</div>
